I wanted to start working with some controls in order to get a leg up for the next project. I created a page that I can later use (after more additions) for a visitor to log a computer problem. Each textbox has a RequiredFieldValidator that forces the user to fill in the textbox. The telephone and email textboxes have a RegExValidator that checks for proper formatting of the text that is entered. A ValidationSummary control that handles the submit button (runnning client-side). When the user clicks submit and there are errors a message box appears telling the user the errors on the page (picture below).
I have added the code to further explain how each validator works.
ASP .Net Examples
I wanted to start working with some controls in order to get a leg up for the next project. I created a page that I can later use (after more additions) for a visitor to log a computer problem. Each textbox has a RequiredFieldValidator that forces the user to fill in the textbox. The telephone and email textboxes have a RegExValidator that checks for proper formatting of the text that is entered. A ValidationSummary control that handles the submit button (runnning client-side). When the user clicks submit and there are errors a message box appears telling the user the errors on the page (picture below).
I have added the code to further explain how each validator works.